package boogui.movie;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.table.DefaultTableModel;

import boogui.member.S_UISetting;
import boogui.member.UserVO;

public class S_MovieMain extends JFrame {	
	
	private static S_MovieMain frame;	
	private JPanel contentPane;
	protected DefaultTableModel model2;
	private static UserVO u;

	public S_MovieMain(UserVO u) {		
		setIconImage(S_UISetting.initIcon());
		setTitle("부귀영화");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(1024, 768);
		setLocationRelativeTo(null);
		setResizable(false);
		contentPane = new JPanel();
		S_MovieMenu movieMenu = new S_MovieMenu(frame, u);
		setJMenuBar(movieMenu);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);		
		new MovieDisplay(contentPane, u);
		setVisible(true);
	}	

	/*public static void main(String[] args) {

		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					frame = new S_MovieMain(u);
					//UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

					frame.setIconImage(S_UISetting.initIcon());

					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});

	}*/

}